<?php
/**
 * Information view helper
 *
 * @category    IPB_CMS
 * @package     App_View
 * @subpackage  Helper
 * @copyright   Copyright (c) 2009 IPB CMS <http://ipb-cms.googlecode.com/>
 * @license     http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License
 * @author      Henrique Moody <henriquemoody@gmail.com>
 */
class App_View_Helper_Information extends Zend_View_Helper_Abstract
{

    /**
     * App_Information instance
     *
     * @var App_Information
     */
    protected $_information;

    /**
     * This method returns the instance of App_View_Helper_Information
     *
     * @return App_View_Helper_Information Fluent interface, returns self
     */
    public function information()
    {
        if (!$this->_information) {
            $this->_information = App_Information::getInstance();
        }
        return $this;
    }

    /**
     * Returns the name of the current project
     *
     * @return string
     */
    public function getName()
    {
        return $this->_information->getName();
    }

    /**
     * Returns the slogan of the current project
     *
     * @return string
     */
    public function getSlogan()
    {
        return $this->_information->getSlogan();
    }

    /**
     * Returns the name of the current project
     *
     * @return string
     */
    public function getHostname()
    {
        return $this->_information->getHostname();
    }

}
